package 慕课网;
import java.util.Scanner;
public class Tests1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        user one=new user();
        user tow=new user();
        String account=in.nextLine();
        String password=in.nextLine();
        one.setAccount(account);
        one.setPassword(password);
        String account1=in.nextLine();
        String password1=in.nextLine();
        tow.setAccount(account1);
        tow.setPassword(password1);
        System.out.println("用户名："+one.getAccount());
        System.out.println("密码："+one.getPassword());
        System.out.println("用户名："+one.getAccount());
        System.out.println("密码："+one.getPassword());
        System.out.println("=========================");
        if(one.getAccount().equals(tow.getAccount())==true)
        {
            if(one.getPassword().equals(tow.getPassword())==true) {
                System.out.println("用户和密码正确");
            }
            else{
                System.out.println("用户或密码不一致");
            }
        }
            else {
            System.out.println("用户或密码不一致");
        }
    }
}
